package pojo;

import java.util.Arrays;
import java.util.Date;

public class User {
	private Integer id;
	private String uname;
	private double sal;
	private Date birth;
	private String sex;
	private byte[] avatar;
	
	public byte[] getAvatar() {
		return avatar;
	}
	public void setAvatar(byte[] avatar) {
		this.avatar = avatar;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public double getSal() {
		return sal;
	}
	public void setSal(double sal) {
		this.sal = sal;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	public User(Integer id, String uname, double sal, Date birth, String sex,
			byte[] avatar) {
		super();
		this.id = id;
		this.uname = uname;
		this.sal = sal;
		this.birth = birth;
		this.sex = sex;
		this.avatar = avatar;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", uname=" + uname + ", sal=" + sal
				+ ", birth=" + birth + ", sex=" + sex + ", avatar="
				+ Arrays.toString(avatar) + "]";
	}
	
	
	
	
}
